<form method="POST" id="frm_social_modal" action="<?php echo site_url("profile/saveEdited/social"); ?>" >
    <fieldset style="text-align: left;">
        <!-- Form Name -->
        <legend style="color:#0088cc; font-weight: lighter;">Social Information :</legend>
    </fieldset>
    <div class="span2 label-profile" >Facebook URL</div>
    <div class="span5 value-profile" id="divFacebook">
        <?php
        $twitterIndex = 1;
        if (isset($user->networks[0]->id) && ($user->networks[0]->id == 1)) {
            $facebookUrl = $user->networks[0]->url;
        } else {
            $facebookUrl = "";
            $socialModifiable = true;
            $twitterIndex = 0;
        }
        ?>
        <input value ="<?php echo $facebookUrl; ?>" id="inputFacebook" name="fb" type="text" placeholder="Facebook URL" class="input-xlarge" />
        <p class="help-block">exemple : www.facebook.com/myfbprofile</p>
    </div>
    <div class="clear"></div>
    <div class="span2 label-profile" >Twitter URL</div>
    <div class="span5 value-profile" id="divTwitter">
        <?php
        if (isset($user->networks[$twitterIndex]->id) && ($user->networks[$twitterIndex]->id == 2)) {
            $twitterUrl = $user->networks[$twitterIndex]->url;
        } else {
            $twitterUrl = "";
        }
        ?>
        <input id="inputTwitter" value="<?php echo $twitterUrl; ?>" name="twitter" type="text" placeholder="Twitter Profile" class="input-xlarge">
    </div>
    <div class="span2">
        &nbsp;
    </div>
    <div class="clear"></div>

    <div class="span3">
        <div class="controls">
            <button id="saveSocialModal" name="saveSocialModal" class="btn btn-primary">Save social information</button>
        </div>
    </div>
    <div class="clear"></div>

</form>

<script>

</script>